<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jinja2的控制语句</title>
</head>
<body>
{#{%  if age>18 %}#}
{#    <div>已满</div>#}
{#{% elif age==18 %}#}
{#    <div>刚满</div>#}
{#{% else %}#}
{#    <div>未满</div>#}
{#{% endif %}#}



{% for book in books %}
    <div>姓名：{{ book.name }}</div>
    <div>作者：{{ book.value }}</div>
{% endfor %}
</body>
</html>